/**
 * 
 */
package shooter.network;

/**
 * Represents a ping message.
 * 
 * @author Michail Tausch
 */
public class PingMessage extends Message{

	private int playerIndex;
	
	/**
	 * The constructor.
	 * @param playerIndex
	 */
	public PingMessage(int playerIndex){
		this.playerIndex=playerIndex;
	}
	
	/**
	 * The Constructor.
	 */
	public PingMessage(){		
	}
	
	/**
	 * Returns the id of the player.
	 * @return
	 */
	public int getPlayerIndex() {
		return playerIndex;
	}

	/**
	 * Sets the id of the player.
	 * @param playerIndex
	 */
	public void setPlayerIndex(int playerIndex) {
		this.playerIndex = playerIndex;
	}	
}
